package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.vo.ItemSaleAttrVo;
import com.atguigu.gulimall.product.vo.SpuItemAttrGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * sku信息
 * 
 * @author zhouh
 * @email zh69144@aliyun.com
 * @date 2022-01-25 11:12:45
 */
@Mapper
public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> {

    List<ItemSaleAttrVo> buildItemSaleAttrBySpuId(@Param("spuId") Long spuId);

    List<SpuItemAttrGroup> buildItemGroupBaseAttrBySpuIdAndCatId(@Param("spuId") Long spuId, @Param("catelogId") Long catalogId);
}
